package com.wolf.service.impl;

import com.wolf.pojo.Wl_user_competence;
import com.wolf.repository.Wl_user_competenceMapper;
import com.wolf.service.Wl_user_competenceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Wl_user_competenceServiceImpl implements Wl_user_competenceService {

    @Autowired
    private Wl_user_competenceMapper wl_user_competenceMapper;

    public void setWl_user_competenceMapper(Wl_user_competenceMapper wl_user_competenceMapper) {
        this.wl_user_competenceMapper = wl_user_competenceMapper;
    }

    @Override
    public int deleteByPrimaryKey(String id) {
        return wl_user_competenceMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Wl_user_competence record) {
        return wl_user_competenceMapper.insert(record);
    }

    @Override
    public int insertSelective(Wl_user_competence record) {
        return wl_user_competenceMapper.insertSelective(record);
    }

    @Override
    public Wl_user_competence selectByPrimaryKey(String id) {
        return wl_user_competenceMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Wl_user_competence record) {
        return wl_user_competenceMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Wl_user_competence record) {
        return wl_user_competenceMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Wl_user_competence> getAll() {
        return wl_user_competenceMapper.getAll();
    }

    @Override
    public List<Wl_user_competence> getSelective(String name, String code) {
        return wl_user_competenceMapper.getSelective(name,code);
    }
}
